import request from '@/utils/request'

// 用电单位列表
export const getCompanyListApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/basic/energyType/getCompanyList', { params })

// 查询分页节能建议配置
export const getPageListApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/saving/advice/set/page', { params })

// 新增节能建议
export const addPageListApi = (data) =>
  request.post('/ecm-microservice-biz/ecm/saving/advice/set/add', data)

// 修改节能建议
export const editPageListApi = (data) =>
  request.post('/ecm-microservice-biz/ecm/saving/advice/set/update', data)

// 删除节能建议
export const delPageListApi = (id) =>
  request.post(`/ecm-microservice-biz/ecm/saving/advice/set/delete?id=${id}`)
